package com.example.startscreen;

public class HistoryLocation extends MyLocation {
	static HistoryLocation[] arrHistory = {
		new HistoryLocation(1,1,"Duklja","Doclea","42.468108,19.265599","http://en.wikipedia.org/wiki/Duklja_(town)","history/duklja.xml"),
		new HistoryLocation(2,1,"Žabljak Crnojevića","Zabljak fortress","42.316892,19.15801","http://hr.wikipedia.org/wiki/%C5%BDabljak_Crnojevi%C4%87a","history/zabljak_crnojevica.xml"),
		new HistoryLocation(3,8,"Obod","Obod","42.398575,18.91084","http://sr.wikipedia.org/wiki/%D0%A8%D1%82%D0%B0%D0%BC%D0%BF%D0%B0%D1%80%D0%B8%D1%98%D0%B0_%D0%A6%D1%80%D0%BD%D0%BE%D1%98%D0%B5%D0%B2%D0%B8%D1%9B%D0%B0","history/obod.xml"),
		new HistoryLocation(4,1,"Bitka na Krusima","Battle of Krusi","42.43315,19.151487","http://hr.wikipedia.org/wiki/Bitka_na_Krusima","history/bitka_na_krusima.xml"),
		new HistoryLocation(5,6,"Bitka na Grahovcu","Battle of Grahovac","42.651384,18.673325","http://sr.wikipedia.org/wiki/Bitka_na_Grahovcu","history/bitka_na_grahovcu.xml"),
		new HistoryLocation(6,1,"Bitka na Fundini","Battle of Fundina","42.451787,19.363897","http://www.montenegrina.net/pages/pages1/istorija/cg_u_xix_vijeku/pojedinosti_iz_bitke_na_fundini.htm","history/bitka_na_fundini.xml"),
		new HistoryLocation(7,7,"Lesendro","Lesendro","42.271784,19.119279","http://sh.wikipedia.org/wiki/Lesendro","history/lesendro.xml"),
		new HistoryLocation(8,8,"Dinastija Petrovića","Dynasty of Petrovic","42.387506,18.924422","http://www.montenegrina.net/pages/gallery/petrovici/petrovici1.htm","history/dinastija_petrovica.xml"),
		new HistoryLocation(9,7,"Volujica","Volujica","42.075243,19.100847","http://www.montenegrina.net/pages/pages1/istorija/dokumenti/pristan3_grupa_autora.htm","history/volujica.xml"),
	};

	public static String getName(int locID) {
		String s = "";
		for (int i=0; i < arrHistory.length; i++) {
			if (arrHistory[i].locID == locID)
				return arrHistory[i].name;
		}
		return s;
	}

	public static String getIme(int locID) {
		String s = "";
		for (int i=0; i < arrHistory.length; i++) {
			if (arrHistory[i].locID == locID)
				return arrHistory[i].ime;
		}
		return s;
	}

	public static String getUrl(int locID) {
		String s = "";
		for (int i=0; i < arrHistory.length; i++) {
			if (arrHistory[i].locID == locID)
				return arrHistory[i].url;
		}
		return s;
	}

	public static String getDescription(int locID) {
		String s = "";
		for (int i=0; i < arrHistory.length; i++) {
			if (arrHistory[i].locID == locID)
				return arrHistory[i].description;
		}
		return s;
	}

	public HistoryLocation(int locID, int cityID, String ime, String name, String latlongpair, String url, String description) {
		super(locID, Category.categoryEnum.HISTORY.getValue(), cityID, ime, name, latlongpair, url, description);
	}
	
}
